package lambda;

/**
 * @ProjectName: sky-take-out
 * @Titile: TestB
 * @Author: 霍静
 * @Description: TODO
 */
public class TestB {
    public static void main(String[] args) {
        B b = new B() {
            @Override
            public void show(String name) {
                System.out.println("hello"+name);
            }
        };
        b.show("白敬亭");

        //Lambda表达式
        B b1 = name -> System.out.println("hello"+name);
        b1.show("马龙");

    }
}
